package com.webbei.Backstage.action;

import java.util.HashMap;
import java.util.Map;

import com.webbei.Backstage.service.BackstateSer;

public class UpdateLabelById {
	private String alias;
	private int labelId;
	private String labelName;
	private BackstateSer bao;
	private String msg;
	public String execute(){
		Map<String,Object>m = new HashMap<String, Object>();
		m.put("alias", alias);
		m.put("labelId", labelId);
		m.put("labelName", labelName);
		System.out.println(m);
		int i = bao.updateLabelByMap(m);
		if(i==1){
			msg="success";
		}else{
			msg="fail";
		}
		return "success";
	}
	
	public String getAlias() {
		return alias;
	}
	public void setAlias(String alias) {
		this.alias = alias;
	}
	public int getLabelId() {
		return labelId;
	}
	public void setLabelId(int labelId) {
		this.labelId = labelId;
	}
	public void setBao(BackstateSer bao) {
		this.bao = bao;
	}

	public String getLabelName() {
		return labelName;
	}

	public void setLabelName(String labelName) {
		this.labelName = labelName;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
